home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gNetFlag
- PreloadNetThing the text of field "argument"
- set gNetFlag = 1
- end
-
- on idle
- -- note the use of netError() to verify results
- if gNetFlag then
- if netDone() then
- if not(netError() contains "OK") then
- set netText = "Error:" & netError()
- else set netText = "Error:" & netError() && ¬
- "MIME:" & netMIME() && "Modified:" & netLastModDate() ¬
- && netTextResult()
- if netText <> EMPTY then set the text of ¬
- field "results" to netText
- set gNetFlag = 0
- end if
- end if
- end